Paper/Archive/CVE-2022-32221

CVE-2022-32221

Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP — When doing HTTP(S) transfers, libcurl might erroneously use the read callback (`CURLOPT_READFUNCTION`) to ask for data to send, even when…

Description · from the CVE record

When doing HTTP(S) transfers, libcurl might erroneously use the read callback (`CURLOPT_READFUNCTION`) to ask for data to send, even when the `CURLOPT_POSTFIELDS` option has been set, if the same handle previously was used to issue a `PUT` request which used that callback. This flaw may surprise the application and cause it to misbehave and either send off the wrong data or use memory after free or similar in the subsequent `POST` request. The problem exists in the logic for a reused handle when it is changed from a PUT to a POST.

Affected

ProductAffectedFixed inSource
https://github.com/curl/curlFixed in 7.86.0–CNA
SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 – < V3.1.5V3.1.5siemens-SADP
SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 – < V3.1.5V3.1.5siemens-SADP
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 – < V3.1.5V3.1.5siemens-SADP
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 – < V3.1.5V3.1.5siemens-SADP
SIPLUS S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 – < V3.1.5V3.1.5siemens-SADP

Scores by source

CISA ADP9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA ADPSSVCExploitation: poc · Automatable: yes · Technical impact: total

References

refhackerone.com/reports/1704017advisorysecurity.gentoo.org/glsa/202212-01refsecurity.netapp.com/advisory/ntap-20230110-0006refsupport.apple.com/kb/HT213604refsupport.apple.com/kb/HT213605refseclists.org/fulldisclosure/2023/Jan/20refseclists.org/fulldisclosure/2023/Jan/19advisorydebian.org/security/2023/dsa-5330reflists.debian.org/debian-lts-announce/2023/01/msg00028.htmlrefsecurity.netapp.com/advisory/ntap-20230208-0002refopenwall.com/lists/oss-security/2023/05/17/4refcert-portal.siemens.com/productcert/html/ssa-892048.htmlrefcert-portal.siemens.com/productcert/html/ssa-398330.html