QSB-124: Partial filtering bypass in split-gpg2
Key points
Qubes OS has published Qubes Security Bulletin 124, dated 2026-11-13, about a bug in split-gpg2 that lets a malicious qube get gpg-agent commands past its filter. The fix arrives through normal updates, followed by a restart of the affected templates and backend qubes.
Who is affected
- Every supported Qubes OS release is affected, but only for users of the
split-gpg2package. - All recent versions of split-gpg2 have the bug.
- split-gpg1 (the
qubes-gpg-splitpackage) is a separate component.
Impact
- In the supported configuration, a malicious qube can make gpg-agent show a password prompt with text of the attacker's choosing and receive whatever the user types.
- The prompt carries the window borders of the backend qube (for example, vault), so it can be used to trick the user into entering a passphrase.
- Secret keys cannot be extracted or altered in the supported configuration, because split-gpg2 talks to a limited "extra" gpg-agent socket.
- A stolen passphrase should therefore be useless to the attacker without the secret key.
- If the key has no passphrase, the prompt may simply confuse the user.
- In theory, the bypass could also help exploit some other GnuPG flaw that the filtering would normally block.
- With
allow_keygen = yesset inqubes-split-gpg2.conf, an attacker can extract secret keys; that option is documented as not security supported.
Technical details
- split-gpg2 accepts unescaped "%" characters in "D" commands sent in reply to an "INQUIRY" from gpg-agent, then escapes them as "%25" when forwarding.
- The escaping makes lines longer, so forwarded lines can exceed the protocol's line length limit, which is checked only on incoming lines.
- For an overlong "INQUIRY" response, gpg-agent aborts the originating command and parses the excess part of the line as a new command.
- This is how commands that the filter would not allow get injected.
Fix and what to do
- For Qubes 4.3, the fix is
split-gpg2version 1.1.16, installed in the templates used for split-gpg2. - Update as usual with the Qubes Update tool or its command-line equivalents.
- After installing, shut down the relevant templates and restart all split-gpg2 backend qubes.
- The package is first in the security-testing repositories, which are disabled by default in dom0 and templates.
- Migration to the current (stable) repositories generally takes one to two weeks and may be expedited in urgent cases.
- Security-testing can be enabled temporarily or permanently to get the fix sooner, at the risk of more bugs.
- Dom0, templates and standalones each have their own security-testing repository, enabled independently.
Verifying the bulletin
- The bulletin is signed by Marek Marczykowski-Górecki and Simon Gaiser (HW42).
- The Qubes Master Signing Key fingerprint shown is 427F 11FD 0FAA 4B08 0123 F01C DDFA 1A3E 3687 9494.
- That key must be authenticated out-of-band, by comparing the fingerprint from several independent sources, before it is trusted.
- Once authenticated, set its trust level to 5 with
trustinsidegpg --edit-key, then quit withq. - The output of each tag and signature check should end with a line starting "gpg: Good signature from".
- The signatures can also be checked by pasting the bulletin text and both signatures from the announcement into plain text files.
- The issue was reported by Atrate.
gpg --fetch-keys https://keys.qubes-os.org/keys/qubes-master-signing-key.asc
gpg --edit-key 0x427F11FD0FAA4B080123F01CDDFA1A3E36879494
git clone https://github.com/QubesOS/qubes-secpack.git
gpg --import qubes-secpack/keys/*/*
cd qubes-secpack/
git tag -v `git describe`
cd QSBs/
gpg --verify qsb-124-2026.txt.sig.marmarek qsb-124-2026.txt
gpg --verify qsb-124-2026.txt.sig.simon qsb-124-2026.txt
Summary by DistroNews, based on the original post.
The full text is on the original page.
Read the original at qubes-os.org