CyberSecBulletin
CVE-2021-31010Exploited in the wildNVD status: Analyzed

Apple iOS, macOS, watchOS Sandbox Bypass

CVE-2021-31010 is a high-severity deserialization of untrusted data vulnerability in macOS from Apple, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists versions 11.6, 2021 as the first without the flaw, so updating macOS to one of those releases or later removes the exposure. CISA added it to the Known Exploited Vulnerabilities catalogue on August 25, 2022, which means attacks have been observed in the wild.

Patch now

Attackers are already exploiting this vulnerability, according to CISA.

What to do

  1. Update macOS to 11.6 or 2021, whichever matches your release line, or a later version.
  2. Update watchOS to 7.6 or 14.8 or 12.5, whichever matches your release line, or a later version.
  3. Update iPadOS to 14.8 or a later version.
  4. CISA's required action: Apply updates per vendor instructions.
  5. Read the advisory on support.apple.com for workarounds and exact fixed builds.
  6. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
ApplemacOSbefore 11.6; before 202111.6, 2021
ApplewatchOSbefore 7.6; before 14.8; before 12.57.6, 14.8, 12.5
AppleiPadOSbefore 14.814.8
AppleIphone OS12.0 up to, but not including, 12.5.5; 14.0 up to, but not including, 14.812.5.5, 14.8
AppleMac OS X10.15 up to, but not including, 10.15.7; 10.15.710.15.7

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
NoneNo data is disclosed.
Integrity
HighData or code can be modified at will.
Availability
NoneAvailability is not affected.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.17.5HighNVD
CVSS 3.17.5HighCISA (ADP)
CVSS 2.05.0MediumNVD

Official description

A deserialization issue was addressed through improved validation. This issue is fixed in Security Update 2021-005 Catalina, iOS 12.5.5, iOS 14.8 and iPadOS 14.8, macOS Big Sur 11.6, watchOS 7.6.2. A sandboxed process may be able to circumvent sandbox restrictions. Apple was aware of a report that this issue may have been actively exploited at the time of release..

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Deserialization of Untrusted Data

The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.

How developers prevent this class of flaw

  • If available, use the signing/sealing features of the programming language to assure that deserialized data has not been tainted. For example, a hash-based message authentication code (HMAC) could be used to ensure that data has not been modified.
  • When deserializing data, populate a new object rather than just deserializing. The result is that the data flows through safe input validation and that the functions are safe.
  • Explicitly define a final object() to prevent deserialization.

More Deserialization of Untrusted Data vulnerabilities (CWE-502)

Timeline

  1. CVE record published.
  2. Added to CISA's Known Exploited Vulnerabilities catalogue.
  3. Deadline for US federal agencies to remediate, set by CISA.
  4. CISA published its SSVC assessment (exploitation: active, automatable: yes, technical impact: partial).
  5. Record last changed materially (score, affected products, status or references).

References

Third-party and government advisories

Other vulnerabilities in macOS

All macOS vulnerabilities

Recent Deserialization of Untrusted Data vulnerabilities

Spotted an error? Tell us.