# NAR unpacking vulnerability -- post mortem

**URL:** https://discourse.nixos.org/t/nar-unpacking-vulnerability-post-mortem/52301
**Category:** Security
**Created:** [September 17, 2024, 8:50pm UTC](https://discourse.nixos.org/t/nar-unpacking-vulnerability-post-mortem/52301 "2024-09-17T20:50:44Z")
**Posts on this page:** 1
**Showing post:** 29

<div class="post-metadata">

### Author: ![numinit](https://discourse.nixos.org/user_avatar/discourse.nixos.org/numinit/32/2313_2.png) [@numinit](https://discourse.nixos.org/u/numinit)
#### Post date: [September 19, 2024, 4:01am UTC](https://discourse.nixos.org/t/nar-unpacking-vulnerability-post-mortem/52301/29 "2024-09-19T04:01:45Z")

</div>

> [@cafkafk](#):
>
> Consider that three weeks ago, on a PR bumping Nix to nixpkgs bumping NixCpp from `2.18.5 -> 2.24.4`, this was written:

The [issue in question](https://github.com/NixOS/nixpkgs/pull/335342#pullrequestreview-2270740278).

> puckipedia intends to report what appears to be a severe vulnerability in Nix 2.24 tomorrow or in the next couple of days that does not affect older versions of Nix or Lix. Please do not merge this until that situation is resolved (either by it being confirmed not exploitable or by a fix being released).

> [@cafkafk](#):
>
> After this point, any attacker knowing this could comb through the changes between `2.18.5` and `2.24.4`, and make use of this exploit in the wild. Thus, the short deadline makes perfect sense, from this point on, the attack was now possible, and it was absolutely just a matter of time before it would have been exploited.

Yes, that is what happens when you start with a public discussion of a security vulnerability. You have to create a short timeline because you just revealed its existence in public.

---

_[View the full topic](https://discourse.nixos.org/t/nar-unpacking-vulnerability-post-mortem/52301)._
