SB2024010540 - Improper input validation in httparty
Published: January 5, 2024
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 security vulnerability.
1) Input validation error (CVE-ID: CVE-2024-22049)
The vulnerability allows a remote attacker to overwrite files on the system.
The vulnerability exists due to insufficient validation of user-supplied input when processing filenames. A remote attacker can provide a crafted filename parameter during multipart/form-data uploads, which could result in attacker controlled filenames being written to the system.
Remediation
Install update from vendor's website.
References
- https://github.com/jnunemaker/httparty/security/advisories/GHSA-5pq7-52mg-hr42
- https://github.com/jnunemaker/httparty/commit/cdb45a678c43e44570b4e73f84b1abeb5ec22b8e
- https://github.com/jnunemaker/httparty/blob/4416141d37fd71bdba4f37589ec265f55aa446ce/lib/httparty/request/body.rb#L43
- https://github.com/advisories/GHSA-5pq7-52mg-hr42
- https://vulncheck.com/advisories/vc-advisory-GHSA-5pq7-52mg-hr42