MGASA-2022-0454 - Updated ruby packages fix security vulnerability

Publication date: 13 Dec 2022
URL: https://advisories.mageia.org/MGASA-2022-0454.html
Type: security
Affected Mageia releases: 8
CVE: CVE-2021-33621

If an application that generates HTTP responses using the cgi gem with
untrusted user input, an attacker can exploit it to inject a malicious
HTTP response header and/or body.

Also, the contents for a CGI::Cookie object were not checked properly. If
an application creates a CGI::Cookie object based on user input, an
attacker may exploit it to inject invalid attributes in Set-Cookie header.
Such applications are unlikely, but a change is included to check
arguments for CGI::Cookie#initialize preventatively.

References:
- https://bugs.mageia.org/show_bug.cgi?id=31187
- https://www.ruby-lang.org/en/news/2022/11/22/http-response-splitting-in-cgi-cve-2021-33621/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/YACE6ORF2QBXXBK2V2CM36D7TZMEJVAS/
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-33621

SRPMS:
- 8/core/ruby-2.7.7-33.6.mga8

Mageia 2022-0454: ruby security update

If an application that generates HTTP responses using the cgi gem with untrusted user input, an attacker can exploit it to inject a malicious HTTP response header and/or body

Summary

If an application that generates HTTP responses using the cgi gem with untrusted user input, an attacker can exploit it to inject a malicious HTTP response header and/or body.
Also, the contents for a CGI::Cookie object were not checked properly. If an application creates a CGI::Cookie object based on user input, an attacker may exploit it to inject invalid attributes in Set-Cookie header. Such applications are unlikely, but a change is included to check arguments for CGI::Cookie#initialize preventatively.

References

- https://bugs.mageia.org/show_bug.cgi?id=31187

- https://www.ruby-lang.org/en/news/2022/11/22/http-response-splitting-in-cgi-cve-2021-33621/

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/YACE6ORF2QBXXBK2V2CM36D7TZMEJVAS/

- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-33621

Resolution

MGASA-2022-0454 - Updated ruby packages fix security vulnerability

SRPMS

- 8/core/ruby-2.7.7-33.6.mga8

Severity
Publication date: 13 Dec 2022
URL: https://advisories.mageia.org/MGASA-2022-0454.html
Type: security
CVE: CVE-2021-33621

Related News