RUGGEDCOM APE1808: Integer Overflow or Wraparound
CVE-2022-37454 is a critical-severity integer overflow or wraparound vulnerability in RUGGEDCOM APE1808 from Siemens, with a CVSS 3.1 base score of 9.8 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected RUGGEDCOM APE1808 versions: all versions. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 7.41% chance of exploitation within 30 days, which is in the top 5.46% of all scored CVEs.
Critical severity: a successful attack would have severe impact.
What to do
- Update SIMATIC S7-1500 CPU 1518-4 PN/DP MFP to V3.1.5 or a later version.
- Update SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP to V3.1.5 or a later version.
- Update SIPLUS S7-1500 CPU 1518-4 PN/DP MFP to V3.1.5 or a later version.
- Read the advisory on github.com for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Siemens | RUGGEDCOM APE1808 | all versions | Not stated |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Extended Keccak Code Package Project | Extended Keccak Code Package | Not specified in the record | Not stated |
| Debian | Debian Linux | 10.0; 11.0 | Not stated |
| Fedora Project | Fedora | 35; 36 | Not stated |
| PHP | PHP | 7.2.0 up to, but not including, 7.4.33; 8.0.0 up to, but not including, 8.0.25; 8.1.0 up to, but not including, 8.1.12 | 7.4.33, 8.0.25, 8.1.12 |
| Python | Python | 3.6.0 up to, but not including, 3.7.16; 3.8.0 up to, but not including, 3.8.16; 3.9.0 up to, but not including, 3.9.16; 3.10.0 up to, but not including, 3.10.9 | 3.7.16, 3.8.16, 3.9.16, 3.10.9 |
| Sha3 Project | Sha3 | before 1.0.5 | 1.0.5 |
| Pysha3 Project | Pysha3 | Not specified in the record | Not stated |
| Pypy | Pypy | 7.0.0 and later | Not stated |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 9.8 | Critical | NVD |
| CVSS 3.1 | 9.8 | Critical | CISA (ADP) |
Official description
The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and resultant buffer overflow that allows attackers to execute arbitrary code or eliminate expected cryptographic properties. This occurs in the sponge function interface.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Integer Overflow or Wraparound
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
How developers prevent this class of flaw
- Ensure that all protocols are strictly defined, such that all out-of-bounds behavior can be identified simply, and require strict conformance to the protocol.
- Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. If possible, choose a language or compiler that performs automatic bounds checking.
- Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. Use libraries or frameworks that make it easier to handle numbers without unexpected consequences. Examples include safe integer handling packages such as SafeInt (C++) or IntegerLib (C or C++).
More Integer Overflow or Wraparound vulnerabilities (CWE-190)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: poc, automatable: yes, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- github.com/XKCP/XKCP/security/advisories/GHSA-6w4m-2xhg-2658Third Party Advisory
Third-party and government advisories
- csrc.nist.gov/projects/hash-functions/sha-3-projectThird Party Advisory, US Government Resource
- lists.debian.org/debian-lts-announce/2022/10/msg00041.htmlMailing List, Third Party Advisory
- lists.debian.org/debian-lts-announce/2022/11/msg00000.htmlMailing List, Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3ALQ6BDDPX5HU5YBQOBM…Mailing List, Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CMIEXLMTW5GO36HTFFWI…Mailing List, Third Party Advisory
- news.ycombinator.com/item?id=33281106Issue Tracking, Third Party Advisory
- debian.org/security/2022/dsa-5267Third Party Advisory
- debian.org/security/2022/dsa-5269Third Party Advisory
Technical write-ups (may include proof of concept)
- mouha.be/sha-3-buffer-overflow/Exploit, Third Party Advisory
Other references
- eprint.iacr.org/2023/331
- news.ycombinator.com/item?id=35050307
- security.gentoo.org/glsa/202305-02
- security.netapp.com/advisory/ntap-20230203-0001/
- cert-portal.siemens.com/productcert/html/ssa-398330.html
- cert-portal.siemens.com/productcert/html/ssa-455250.html
- cert-portal.siemens.com/productcert/html/ssa-806742.html
Other vulnerabilities in RUGGEDCOM APE1808
- 7.5 High severity
- 7.2 High severity
Palo Alto Networks PAN-OS Code Injection Exploited
- 7.2 High severity
- 8.1 High severity
- 7.5 High severity
- 7.4 High severity
Recent Integer Overflow or Wraparound vulnerabilities
- 9.8 Critical severity
- 9.8 Critical severity
- 7.5 High severity
- 7.8 High severity
- 9.8 Critical severity
- 7.5 High severity
Spotted an error? Tell us.