A flaw was found in sequoia-openpgp. The Display and Debug implementations for UserID and NotationData passed attacker-controlled packet bytes through with only UTF-8 lossy conversion and did not escape control characters, newlines, or terminal control sequences. An application that prints those values can misrender the identity or alter terminal output. Signature verification of ordinary keys is not changed. Fixed in sequoia-openpgp 2.5.0.
A flaw was found in sequoia-openpgp. The ASCII-armor reader buffers each input line with readto(newline) and does not enforce a maximum line length. An attacker-supplied armored message whose line length is comparable to the process memory limit can exhaust memory in the parsing process. Resident memory follows the input size, with a small constant factor from the growable buffer. This is not a classic amplification flaw. The issue is present in sequoia-openpgp 2.4.2. The unreleased fix enforces a 4096-byte line limit.
A flaw was found in sequoia-openpgp. The ASCII-armor reader buffers each input line with readto(newline) and does not enforce a maximum line length. An attacker-supplied armored message whose line length is comparable to the process memory limit can exhaust memory in the parsing process. Resident memory follows the input size, with a small constant factor from the growable buffer. This is not a classic amplification flaw. The issue is present in sequoia-openpgp 2.4.2. The unreleased fix enforces a 4096-byte line limit.