Eve can match Alice on one side and Bob on the other side.
Eve has two matching sides
With Alice, Eve has 3. With Bob, Eve has 6.
Alice and Bob do not match each other
Alice's value is 3 while Bob's value is 6.
The real shared value never forms
The honest Alice-Bob value would have been 2, but neither endpoint computed that value in this transcript.
honest shared=2
Summary
The attack does not break the arithmetic. It changes which public value each side uses.
two endpoints, two secrets